// Package member
// @Link  https://github.com/bufanyun/hotgo
// @Copyright  Copyright (c) 2023 HotGo CLI
// @Author  Ms <133814250@qq.com>
// @License  https://github.com/bufanyun/hotgo/blob/master/LICENSE
package v1

import (
	"github.com/gogf/gf/v2/frame/g"
	"hotgo/internal/model/input/apiin"
)

// 获取广告信息
type BannersReq struct {
	g.Meta `path:"/operation/banners" method:"get" tags:"API-广告" summary:"获取广告信息"`
}

type BannersRes struct {
	List []*apiin.BannersListModel `json:"list" dc:"数据列表"`
}

// 领取新人有礼红包
type RedPacketReq struct {
	g.Meta `path:"/operation/redPacket" method:"get" tags:"API-新人有礼" summary:"领取新人有礼红包"`
}

type RedPacketRes struct {
}

// 新人商品列表
type ProductNewListReq struct {
	g.Meta `path:"/operation/productNewList" method:"get" tags:"API-新人有礼" summary:"新人商品列表"`
}

type ProductNewListRes struct {
	List []*apiin.ProductNewListModel `json:"list" dc:"数据列表"`
}

// 新人商品历史兑换消息
type ExchangeHistoryReq struct {
	g.Meta `path:"/operation/productNew/exchangeHistory" method:"get" tags:"API-新人有礼" summary:"新人商品历史兑换消息"`
}

type ExchangeHistoryRes struct {
	List []*apiin.ProductNewExchangeHistoryModel `json:"list" dc:"数据列表"`
}

// 团购商品历史兑换消息
type ProductGroupExchangeHistoryReq struct {
	g.Meta `path:"/operation/productGroup/exchangeHistory" method:"get" tags:"API-团购商品" summary:"团购商品历史兑换消息"`
}

type ProductGroupExchangeHistoryRes struct {
	List []*apiin.ProductGroupExchangeHistory `json:"list" dc:"数据列表"`
}

// 查询会员卡信息
type MemberCardReq struct {
	g.Meta `path:"/operation/memberCard" method:"get" tags:"API-会员卡" summary:"查询会员卡信息"`
	Show   string `json:"show" dc:"显示类型：不填默认查询会员卡，agent：查询代理类数据"`
}

type MemberCardRes struct {
	List []*apiin.MemberCard `json:"list" dc:"数据列表"`
}
